package kr.saeildamil.androidstudy.ch17;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

public class MulAct extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		Intent intent = getIntent();
		int l_Value = Integer.parseInt(intent.getStringExtra("l_Value"));
		int r_Value = Integer.parseInt(intent.getStringExtra("r_Value"));
		
		int result = l_Value * r_Value;
		
		Intent resIntent = new Intent();
		resIntent.putExtra("MulResult", result);
		setResult(RESULT_OK, resIntent);
		finish();
	}
}
